package com.ruoyi.shop.member.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员成长值对象 shop_member_growth
 * 
 * @author xuxiang
 * @date 2024-01-10
 */
public class ShopMemberGrowth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成长值id */
    private Long growthId;

    /** 会员id */
    @Excel(name = "会员id")
    private Long memberId;

    /** 关联数据id */
    @Excel(name = "关联数据id")
    private Long dataId;

    /** 数据类型 */
    @Excel(name = "数据类型")
    private String dataType;

    /** 变动类型:1收入-1支出 */
    @Excel(name = "变动类型:1收入-1支出")
    private Integer changeType;

    /** 变动数量 */
    @Excel(name = "变动数量")
    private BigDecimal value;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 操作类型（0会员1后台） */
    @Excel(name = "操作类型", readConverterExp = "0=会员1后台")
    private Integer operType;

    public void setGrowthId(Long growthId) 
    {
        this.growthId = growthId;
    }

    public Long getGrowthId() 
    {
        return growthId;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setDataId(Long dataId) 
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setChangeType(Integer changeType) 
    {
        this.changeType = changeType;
    }

    public Integer getChangeType() 
    {
        return changeType;
    }
    
    public BigDecimal getValue() {
		return value;
	}

	public void setValue(BigDecimal value) {
		this.value = value;
	}

	public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setOperType(Integer operType) 
    {
        this.operType = operType;
    }

    public Integer getOperType() 
    {
        return operType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("growthId", getGrowthId())
            .append("memberId", getMemberId())
            .append("dataId", getDataId())
            .append("dataType", getDataType())
            .append("changeType", getChangeType())
            .append("value", getValue())
            .append("balance", getBalance())
            .append("title", getTitle())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("operType", getOperType())
            .toString();
    }
}
